<!DOCTYPE html>
<html>
<head>
    <title>简述【执行上下文】下</title>
    <meta charset="utf-8"/>
    <script src="../../js/jquery-1.10.1.min.js"></script>
    <script>
        var a = 10;
        function fn(){
            console.log(a);
        }

        function bar(f){
            var a = 20;
            alert(a);
            f();
        }

        bar(fn);
    </script>
</head>
<body>
    <p>简述【执行上下文】下</p>
</body>
</html>